package com.tm.szb.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tm.szb.dto.EmployeeDTO;
import com.tm.szb.entity.Employee;

public interface EmployeeService extends IService<Employee> {
    /**
     * 根据用户名查询账号信息
     * @param username
     * @return
     */
    Employee getByUserName(String username);

    /**
     *新增用户
     * @param employeeDTO
     * @param employeeId
     */
    void addEmployee(EmployeeDTO employeeDTO, Long employeeId);

    /**
     * 查询用户列表
     * @param page
     * @param pageSize
     * @param name
     * @return
     */
    Page<Employee> findPageList(Integer page, Integer pageSize, String name);

    /**
     *
     * @param employeeDTO
     * @param employeeId
     */
    void updateStatus(EmployeeDTO employeeDTO, Long employeeId);
}
